package com.bw.lyc.mvp.view.mine.adapter;


import com.bw.lyc.R;
import com.bw.lyc.mvp.model.entity.UserMenuEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;


public class UserMenuAdapter extends BaseQuickAdapter<UserMenuEntity, BaseViewHolder> {

    public UserMenuAdapter() {
        super(R.layout.item_mine_menu);
    }

    @Override
    protected void convert(BaseViewHolder helper, UserMenuEntity item) {
        helper.setText(R.id.mine_menu_item_name,item.name);
        helper.setImageResource(R.id.mine_menu_icon,item.imgId);
    }
}
